package be.jhd.downloader.utils;

import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import be.jhd.appserver.weblogic.command.WeblogicConfig;
import be.jhd.repository.nexus.DownloaderConfig;

public class ConfigUtils {

	public static WeblogicConfig getAsDevMainServer(){
		final WeblogicConfig config = mock(WeblogicConfig.class);
		doReturn("http://10.0.2.37:8005").when(config).getAdminUrl();
		doReturn("belpicas").when(config).getPassword();
		doReturn("system").when(config).getUser();
		doReturn("AsDevMainServer").when(config).getTargets();
		return config;
	}
	
	public static DownloaderConfig getDownloader(){
		final DownloaderConfig config = mock(DownloaderConfig.class);
		doReturn("http://10.0.1.210:8081/nexus/service/local/artifact/maven/redirect").when(config).getRepositoryUrl();
		return config;
	}
}
